/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package tecken;

import javax.swing.JFrame;

/**
 *
 * @author Wolf
 */
public class MainFrame extends JFrame{
    MainModel m;
    ActionListener listener;

    public MainFrame(MainModel mm, ActionListener al){
        super("Game Frame");
        m = mm;
        listener = al;

        initFrame();
    }

    private void initFrame(){
        setSize(300, 300);
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        setVisible(true);
        this.addKeyListener(listener);
    }
}
